Involver Developer Network : success page
This page last changed on Apr 05, 2012 by jed.wheeler@involver.com.
Building a Success PageAfter the user clicks the submit button on the contest form, they will be taken to the Success page. Like the Entry Form SML, the Success SML is defined as a partial. The partial name is then passed to the contest_form_link: {% partial name:'my-success' %} // Your Success SML here {% endpartial %} {% contest_form_link entry_form_partial:"my-entry-form" success_partial:"my-success" %}Submit My Entry{% endcontest_form_link %} The contest_entry and contest_user variables are available for you to display to the user. Below is an example of a Success Page SML for the previous example. <h2>Thank you for your submission, {{ contest_user.registration.name }}!</h2> <p>The following submission will be posted, pending approval:<br> Before Photo: <img src="{{ contest_entry.submission.before_photo }}" alt=""><br> Mood: {{contest_entry.submission.mood}}</p> |
![]() |
Document generated by Confluence on Feb 12, 2013 09:09 |